package com.dbmall.service;

import com.dbmall.common.ServerResponse;
import com.dbmall.pojo.Shipping;
import com.github.pagehelper.PageInfo;

/**
 * @author karry
 * @email handsomekarry@qq.com
 * @date 2018/7/10 0:40
 */
public interface IShippingService {

    ServerResponse add(Integer userId, Shipping shipping);

    ServerResponse<String> del(Integer userId,Integer shippingId);

    ServerResponse update(Integer userId, Shipping shipping);

    ServerResponse<Shipping> select(Integer userId, Integer shippingId);

    ServerResponse<PageInfo> list(Integer userId, int pageNum, int pageSize);

}
